cmake_minimum_required(VERSION 3.10)

project(HikvisionTest)


include_directories(
    ${CMAKE_SOURCE_DIR}/include/
)

aux_source_directory(${CMAKE_SOURCE_DIR} DIR_SRCS)

link_directories(
    ${CMAKE_SOURCE_DIR}/x86_64
    ${CMAKE_SOURCE_DIR}/x86_64/HCNetSDKCom
)

add_definitions(-w)

if(PRINT_INCLUDE_PATHS)
    message(INFO "-----------------------------")
    PRINT_INCLUDE_DIRS()
    message(INFO "-----------------------------")
endif()

#--------------------------------------------------------
# Build
#--------------------------------------------------------
set(TARGET "HikvisionTest")

add_executable(${TARGET} ${DIR_SRCS})

target_link_libraries(
    ${TARGET}

    -Wl,--start-group

    hcnetsdk
    HCCore
    HCPreview

    -Wl,--end-group
    )
